namespace OFX.Aggregator.WebScraping.Infrastructure
{
	#region #using Directives

	using System;

	#endregion

	[Serializable]
	public class AssumptionFailedException : Exception
	{
		private readonly IHtmlPageProcessor processor;

		public AssumptionFailedException(IHtmlPageProcessor processor, string message)
			: base(message)
		{
			this.processor = processor;
		}

		public AssumptionFailedException(IHtmlPageProcessor processor, string message, Exception innerException)
			: base(message, innerException)
		{
			this.processor = processor;
		}

		public IHtmlPageProcessor Processor
		{
			get { return this.processor; }
		}
	}
}